var app = getApp();
Page({
  data: {
    indexPar:"",
    zhanshi:"",
    video:true,
    img:"",
    imgUrl:app.globalData.imgUrl+'/image/',
  },
  onLoad: function () {
    wx.setNavigationBarTitle({
      title: "校园导览"
    })
    //前后台交互   获得首页参数
    var that=this;
    wx.request({
      url: app.globalData.Url+`/wxstudent/wxsceneryapplets`,
      data:{ },
      method: 'POST', 
      header:{'content-type':'application/x-www-form-urlencoded'},
      success: function (req) {
        var list=req.data
        that.setData({
          indexPar:list[0],
        })
      },
    })
  },
  toUser(){
    wx.navigateTo({
      url: '/pages/user/user',
    })
  },
  dangerOp(){
    console.log("危险操作")
    wx.request({
      url: app.globalData.Url+`/wxstudent/dangerOp`,
      data:{ },
      method: 'POST', 
      header:{'content-type':'application/x-www-form-urlencoded'},
      success: function (req) {
        
      },
    })
  }
})